package com.hl.godsent.constant

import android.os.Build
import android.os.Environment
import com.hl.godsent.GodSent
import java.time.ZoneId
import java.util.*

class AppConfig {
    companion object {
        val DEFAULT_SAVE_APK_PATH = GodSent.getGodSentContext().getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS)?.absolutePath
        const val DEFAULT_APK_NAME = "app.apk"
        val LOCALE = Locale.CHINA
        val TIME_ZONE = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            TimeZone.getTimeZone(ZoneId.systemDefault())
        } else {
            TimeZone.getTimeZone("GMT+8")
        }
        const val HTTP_DNS_ACCOUNT_ID = "20662"
        var initialLoadAllAutomatically = false  // 是否在获取了handles后直接自动全量获取数据
        var CAMERA_TIME_DIFF_ALERT_GATE = 600_000    // 相机拍摄时间超过这个会提醒
    }

}
